<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>客户公司</title>
<link href="/theme/comm/simpl.css" type="text/css" rel="stylesheet"
	media="screen" />
<link href="/theme/comm/base.css" type="text/css" rel="stylesheet"
	media="screen" />
</head>
<body class="Margin">
	<jsp:include page="/content/comm/header.jsp"></jsp:include>
	<script type="text/javascript">
		document.all.ClientCorpTab.className += "ActiveTab";
	</script>
	<div class="PageBackground">
		<div style="margin: 10px;">
			<span style="font-weight: bold;">表1附表（客户公司）</span>
		</div>
		<form action="/sheets/client-corp.do" method="post"
			enctype="multipart/form-data">
			<div>
				<table>
					<tr>
						<td>所属公司：</td>
						<td><s:textfield name="corpName"></s:textfield></td>
					</tr>
					<tr>
						<td>公司税号：</td>
						<td><s:textfield name="corpTaxNum"></s:textfield></td>
					</tr>
					<tr>
						<td>负责人：</td>
						<td><s:textfield name="principal"></s:textfield></td>
					</tr>
					<tr>
						<td></td>
						<td><s:submit id="searchBtn" name="search" method="search"
								value="Search"></s:submit></td>
					</tr>
				</table>
			</div>
			<div>
				<s:file id="spreadSheet" name="spreadSheet"></s:file>
				<s:submit id="uploadBtn" name="Upload" method="uploadSheet"
					value="Upload"></s:submit>
			</div>
		</form>
		<s:property value="outMessage" />
		<s:if test="outMessage!=''">
			<div>
				<table border="1">
					<tr>
						<s:iterator value="colHeaderList" var="chItem" status="st">
							<td
								<s:if test="!#chItem.isMatch">style="background-color:red;"</s:if>><s:property
									value="#chItem.columnName" /></td>
						</s:iterator>
					</tr>
				</table>
			</div>
		</s:if>
		<s:else>
			<div>
				<table border="1">
					<tr>
						<td>所属公司</td>
						<td>公司税号</td>
						<td>负责人</td>
						<td>负责人电话</td>
						<td>第二联系人</td>
						<td>第二联系人电话</td>
						<td>法人代表</td>
						<td>地址</td>
						<td>备注</td>
					</tr>
					<s:iterator value="clientCorpList" var="ccItem" status="st">
						<tr>
							<td><s:property value="#ccItem.corpName" /></td>
							<td><s:property value="#ccItem.corpTaxNum" /></td>
							<td><s:property value="#ccItem.principal" /></td>
							<td><s:property value="#ccItem.principalPhone" /></td>
							<td><s:property value="#ccItem.secondContact" /></td>
							<td><s:property value="#ccItem.secondContactPhone" /></td>
							<td><s:property value="#ccItem.legalRepresentative" /></td>
							<td><s:property value="#ccItem.address" /></td>
							<td><s:property value="#ccItem.remarks" /></td>
						</tr>
					</s:iterator>
				</table>
			</div>
		</s:else>
	</div>
</body>
</html>
